{% extends 'pase.html' %}
{% block class1 %}
    class="active"
{% endblock %}
{% block table%}
     <button><a href="{% url 'add_matter' %}">添加</a></button>
                <table class="table table-striped">
                    <tr>
                        <th>id编号</th>
                        <th>名称</th>
                        <th>编号</th>
                        <th>购买时间</th>
                        <th>所属实验室</th>
                        <th >操作</th>
                        <th >操作</th>
                    </tr>
                    {% for i in matter_all %}

                        <tr>
                            <p>
                            <td>{{ forloop.counter }}</td>
                            <td>{{ i.m_name }}</td>
                            <td>{{ i.number }}</td>
                            <td>{{ i.time }}</td>
                            <td>{{ i.lad.l_name }}</td>
                            <td><button><a href="{% url  'exit_matter' i.pk  %}">编辑</a></button></td>
                            <td><button style="color: red" type="button" value="{{ i.pk }}" class="button1" src="/del_matter/">删除
                                </button></td>
                            </p>
                        </tr>
                    {% endfor %}
                </table>
{% endblock %}

{% block script %}
    {% include 'nva.html' %}
{% endblock %}